
def inst_sandbox(appname):
    sandbox_list=['os'] # 要拷贝的文件
    for i in sandbox_list:
        with open("/storage/system/sandbox/"+i+".py", "r") as file:
            f=file.read() # 加载对应文件
        f=f.replace("{{appname}}",appname) # 渲染沙盒模板
        with open("/storage/data/NorthStar/app/"+appname+"/sandbox/"+i+".py", "w") as file:
            file.write(f) # 保存文件 
